package com.demo.oauth2jFinalShiroClient.config;

public class NeteaseOAuth2Config implements OAuth2Config {
	//和shiro.ini的/netease/**=authc,roles[thirdPart,netease]保持一致
	public static final String CHANNEL_NETEASE = "netease";	
	public static final String SERVER_ADD_NOTE_URL = "http://localhost:8080/oAuth2jFinalShiroServer/res/addNote";
	public static final String SERVER_LIST_NOTE_URL = "http://localhost:8080/oAuth2jFinalShiroServer/res/note";
	
	private final String SERVER_AUTHORIZE_URL = "http://localhost:8080/oAuth2jFinalShiroServer/authorize";
	private final String SERVER_ACCESS_TOKEN_URL = "http://localhost:8080/oAuth2jFinalShiroServer/accessToken";
	private final String SERVER_USERINFO_URL = "http://localhost:8080/oAuth2jFinalShiroServer/res/userInfo";
	private final String CLIENT_USERINFO_URL = "/netease/userInfo";
	private final String OAUTH_CLIENT_ID = "client";
	private final String OAUTH_CLIENT_SECRET = "client";
	
	@Override
	public String getServerAuthorizeUrl() {
		return SERVER_AUTHORIZE_URL;
	}

	@Override
	public String getServerAccessTokenUrl() {
		return SERVER_ACCESS_TOKEN_URL;
	}

	@Override
	public String getServerUserinfoUrl() {
		return SERVER_USERINFO_URL;
	}

	@Override
	public String getOauthClientId() {
		return OAUTH_CLIENT_ID;
	}

	@Override
	public String getOauthClientSecret() {
		return OAUTH_CLIENT_SECRET;
	}

	@Override
	public String getChannel() {
		return CHANNEL_NETEASE;
	}

	@Override
	public String getClientUserinfoUrl() {
		return CLIENT_USERINFO_URL;
	}
	
}
